<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>06综合练习</title>
    <style>
        div {
            background-color: #e8e8e8;
            width: 198px;
            height: 233px;
            text-align: center;
        }

        img {
            width: 198px;
            height: 136px;
            text-align: center;
        }

        .title_p {
            font-size: 12px;
            color: #000;
            margin:0 0  6px 0 ;
            text-align: center;
        }

        .price_p {
            text-align: center;
            margin: 6px 0;
            font-size: 12px;
            font-weight: bold;
            color: #0AA1ED;
        }

        a {
            width: 100px;
            height: 24px;
            background-color: #0aa1ed;
            color: white;
            text-align: center;
            line-height: 24px;
            text-decoration: none;
            border-radius: 2px;
            /*通过外边距控制块级元素的居中*/
            /*display: block;
            margin: 0 auto;*/
            /*通过给上级元素添加text-align:center控制行内元素和行内块元素的居中*/
            display: inline-block;
        }
    </style>
</head>
<body>
<div>
    <img src="img1.png">
    <p class="title_p">戴尔(DELL)XPS13-9360-R1609 13.3英寸微边框笔记本电脑</p>
    <p class="price_p">￥4600.00</p>
    <a href="">查看详情</a>
</div>
</body>
</html>